package com.knight.hadoop.day07.rpc.client;

import java.io.IOException;
import java.net.InetSocketAddress;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.ipc.RPC;

import com.knight.hadoop.day07.rpc.protocol.ClientNameNodeProtocol;

public class MyHdfsClient {
	public static void main(String[] args) throws IOException {
		ClientNameNodeProtocol proxy = RPC.getProxy(ClientNameNodeProtocol.class, ClientNameNodeProtocol.versionID, new InetSocketAddress("localhost", 8888), new Configuration());
		String metaData = proxy.getMetaData("/test/log");
		System.out.println("返回数据："+metaData);
	}
}
